Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin sqlite3 rubygem to 1.6.9 #2458

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

joshcooper
Copy link
Contributor

The test started failing on RHEL8 ARM with:

$ env GEM_HOME=/opt/puppetlabs/puppet/lib/ruby/vendor_gems env PATH="/opt/puppetlabs/puppet/bin:${PATH}" gem install sqlite3 -v 1.7.0 -- --enable-system-libraries
  ERROR:  Error installing sqlite3:
  	The last version of sqlite3 (= 1.7.0) to support your Ruby & RubyGems was 1.7.0. Try installing it with `gem install sqlite3 -v 1.7.0` and then running the current command again
  	sqlite3 requires Ruby version >= 3.0, < 3.4.dev. The current ruby version is 2.7.8.225.

The sqlite3 gem dropped "native gem support for 2.7" in 1.7.0. So pin to the version just prior to that.

The test started failing on RHEL8 ARM with:

    $ env GEM_HOME=/opt/puppetlabs/puppet/lib/ruby/vendor_gems env PATH="/opt/puppetlabs/puppet/bin:${PATH}" gem install sqlite3 -v 1.7.0 -- --enable-system-libraries
      ERROR:  Error installing sqlite3:
      	The last version of sqlite3 (= 1.7.0) to support your Ruby & RubyGems was 1.7.0. Try installing it with `gem install sqlite3 -v 1.7.0` and then running the current command again
      	sqlite3 requires Ruby version >= 3.0, < 3.4.dev. The current ruby version is 2.7.8.225.

The sqlite3 gem dropped "native gem support for 2.7" in 1.7.0. So pin to the
version just prior to that.
@joshcooper joshcooper requested a review from a team as a code owner January 3, 2024 21:15
@joshcooper
Copy link
Contributor Author

Manually tested this using:

$ export GEM_SOURCE=https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/
$ export SHA=f8acfa7e064fb553bb167d141bfd328f2f3d91bc
$ bundle exec beaker-hostgenerator redhat8-AARCH64a --hypervisor abs --disable-default-role --osinfo-version 1 > hosts.yaml
$ bundle exec rake ci:test:setup HOSTS=hosts.yaml
$ bundle exec beaker exec tests/validate_vendored_ruby.rb

@joshcooper joshcooper merged commit c5901af into puppetlabs:7.x Jan 3, 2024
2 checks passed
@joshcooper joshcooper deleted the 7x_rhel8_arm branch January 3, 2024 23:50
@joshcooper joshcooper added the maintenance Maintenance chores are typically excluded from changelogs label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance chores are typically excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant